package mybag1;

public class MyThread extends Thread{
    @Override
    public void run() {
        Thread t=Thread.currentThread();
        String str=t.getName();
        System.out.println(str);
    }
}
